// 新增 LoginResponse.java
package com.example.netty.tcp.message;

import com.fasterxml.jackson.annotation.JsonProperty;

public class LoginResponse extends BaseMessage {
    public LoginResponse() {
        setMsgType(111); // 响应类型
    }

    @JsonProperty("reason") // 添加reason字段
    private String reason; // 失败原因（可选）

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @JsonProperty("result")
    private int result; // 1:成功, 0:失败

    public int getResult() { return result; }
    public void setResult(int result) { this.result = result; }
}
